ca.uhn.hl7v2.model.v25.segment.CER Maven / Gradle / Ivy
/*
* This class is an auto-generated source file for a HAPI
* HL7 v2.x standard structure class.
*
* For more information, visit: http://hl7api.sourceforge.net/
*/
package ca.uhn.hl7v2.model.v25.segment;
// import ca.uhn.hl7v2.model.v25.group.*;
import ca.uhn.hl7v2.model.v25.datatype.*;
import ca.uhn.log.HapiLogFactory;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.parser.ModelClassFactory;
import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
import ca.uhn.hl7v2.model.AbstractMessage;
import ca.uhn.hl7v2.model.Group;
import ca.uhn.hl7v2.model.Type;
import ca.uhn.hl7v2.model.AbstractSegment;
import ca.uhn.hl7v2.model.Varies;
/**
*Represents an HL7 CER message segment (Certificate Detail).
* This segment has the following fields:
*
* - CER-1: Set ID _ CER (SI)
*
- CER-2: Serial Number (ST) optional
*
- CER-3: Version (ST) optional
*
- CER-4: Granting Authority (XON) optional
*
- CER-5: Issuing Authority (XCN) optional
*
- CER-6: Signature of Issuing Authority (ED) optional
*
- CER-7: Granting Country (ID) optional
*
- CER-8: Granting State/Province (CWE) optional
*
- CER-9: Granting County/Parish (CWE) optional
*
- CER-10: Certificate Type (CWE) optional
*
- CER-11: Certificate Domain (CWE) optional
*
- CER-12: Subject ID (ID) optional
*
- CER-13: Subject Name (ST)
*
- CER-14: Subject Directory Attribute Extension (Health Professional Data) (CWE) optional repeating
*
- CER-15: Subject Public Key Info (CWE) optional
*
- CER-16: Authority Key Identifier (CWE) optional
*
- CER-17: Basic Constraint (ID) optional
*
- CER-18: CRL Distribution Point (CWE) optional repeating
*
- CER-19: Jurisdiction Country (ID) optional
*
- CER-20: Jurisdiction State/Province (CWE) optional
*
- CER-21: Jurisdiction County/Parish (CWE) optional
*
- CER-22: Jurisdiction Breadth (CWE) optional repeating
*
- CER-23: Granting Date (TS) optional
*
- CER-24: Issuing Date (TS) optional
*
- CER-25: Activation Date (TS) optional
*
- CER-26: Inactivation Date (TS) optional
*
- CER-27: Expiration Date (TS) optional
*
- CER-28: Renewal Date (TS) optional
*
- CER-29: Revocation Date (TS) optional
*
- CER-30: Revocation Reason Code (CE) optional
*
- CER-31: Certificate Status (CWE) optional
*
*/
public class CER extends AbstractSegment {
/**
* Creates a new CER segment
*/
public CER(Group parent, ModelClassFactory factory) {
super(parent, factory);
init(factory);
}
private void init(ModelClassFactory factory) {
try {
this.add(SI.class, true, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "Set ID _ CER");
this.add(ST.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Serial Number");
this.add(ST.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Version");
this.add(XON.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Granting Authority");
this.add(XCN.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Issuing Authority");
this.add(ED.class, false, 1, 65536, new Object[]{ getMessage(), new Integer(0) }, "Signature of Issuing Authority");
this.add(ID.class, false, 1, 3, new Object[]{ getMessage() }, "Granting Country");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(347) }, "Granting State/Province");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(289) }, "Granting County/Parish");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Certificate Type");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Certificate Domain");
this.add(ID.class, false, 1, 250, new Object[]{ getMessage() }, "Subject ID");
this.add(ST.class, true, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Subject Name");
this.add(CWE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Subject Directory Attribute Extension (Health Professional Data)");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Subject Public Key Info");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Authority Key Identifier");
this.add(ID.class, false, 1, 250, new Object[]{ getMessage() }, "Basic Constraint");
this.add(CWE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "CRL Distribution Point");
this.add(ID.class, false, 1, 3, new Object[]{ getMessage() }, "Jurisdiction Country");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(347) }, "Jurisdiction State/Province");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(289) }, "Jurisdiction County/Parish");
this.add(CWE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(547) }, "Jurisdiction Breadth");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Granting Date");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Issuing Date");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Activation Date");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Inactivation Date");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Expiration Date");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Renewal Date");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Revocation Date");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Revocation Reason Code");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(536) }, "Certificate Status");
} catch(HL7Exception e) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating CER - this is probably a bug in the source code generator.", e);
}
}
/**
* Returns
* CER-1: "Set ID _ CER" - creates it if necessary
*/
public SI getSetIDCER() {
SI ret = null;
try {
Type t = this.getField(1, 0);
ret = (SI)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-1: "Set ID _ CER" - creates it if necessary
*/
public SI getCer1_SetIDCER() {
SI ret = null;
try {
Type t = this.getField(1, 0);
ret = (SI)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-2: "Serial Number" - creates it if necessary
*/
public ST getSerialNumber() {
ST ret = null;
try {
Type t = this.getField(2, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-2: "Serial Number" - creates it if necessary
*/
public ST getCer2_SerialNumber() {
ST ret = null;
try {
Type t = this.getField(2, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-3: "Version" - creates it if necessary
*/
public ST getVersion() {
ST ret = null;
try {
Type t = this.getField(3, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-3: "Version" - creates it if necessary
*/
public ST getCer3_Version() {
ST ret = null;
try {
Type t = this.getField(3, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-4: "Granting Authority" - creates it if necessary
*/
public XON getGrantingAuthority() {
XON ret = null;
try {
Type t = this.getField(4, 0);
ret = (XON)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-4: "Granting Authority" - creates it if necessary
*/
public XON getCer4_GrantingAuthority() {
XON ret = null;
try {
Type t = this.getField(4, 0);
ret = (XON)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-5: "Issuing Authority" - creates it if necessary
*/
public XCN getIssuingAuthority() {
XCN ret = null;
try {
Type t = this.getField(5, 0);
ret = (XCN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-5: "Issuing Authority" - creates it if necessary
*/
public XCN getCer5_IssuingAuthority() {
XCN ret = null;
try {
Type t = this.getField(5, 0);
ret = (XCN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-6: "Signature of Issuing Authority" - creates it if necessary
*/
public ED getSignatureOfIssuingAuthority() {
ED ret = null;
try {
Type t = this.getField(6, 0);
ret = (ED)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-6: "Signature of Issuing Authority" - creates it if necessary
*/
public ED getCer6_SignatureOfIssuingAuthority() {
ED ret = null;
try {
Type t = this.getField(6, 0);
ret = (ED)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-7: "Granting Country" - creates it if necessary
*/
public ID getGrantingCountry() {
ID ret = null;
try {
Type t = this.getField(7, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-7: "Granting Country" - creates it if necessary
*/
public ID getCer7_GrantingCountry() {
ID ret = null;
try {
Type t = this.getField(7, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-8: "Granting State/Province" - creates it if necessary
*/
public CWE getGrantingStateProvince() {
CWE ret = null;
try {
Type t = this.getField(8, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-8: "Granting State/Province" - creates it if necessary
*/
public CWE getCer8_GrantingStateProvince() {
CWE ret = null;
try {
Type t = this.getField(8, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-9: "Granting County/Parish" - creates it if necessary
*/
public CWE getGrantingCountyParish() {
CWE ret = null;
try {
Type t = this.getField(9, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-9: "Granting County/Parish" - creates it if necessary
*/
public CWE getCer9_GrantingCountyParish() {
CWE ret = null;
try {
Type t = this.getField(9, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-10: "Certificate Type" - creates it if necessary
*/
public CWE getCertificateType() {
CWE ret = null;
try {
Type t = this.getField(10, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-10: "Certificate Type" - creates it if necessary
*/
public CWE getCer10_CertificateType() {
CWE ret = null;
try {
Type t = this.getField(10, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-11: "Certificate Domain" - creates it if necessary
*/
public CWE getCertificateDomain() {
CWE ret = null;
try {
Type t = this.getField(11, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-11: "Certificate Domain" - creates it if necessary
*/
public CWE getCer11_CertificateDomain() {
CWE ret = null;
try {
Type t = this.getField(11, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-12: "Subject ID" - creates it if necessary
*/
public ID getSubjectID() {
ID ret = null;
try {
Type t = this.getField(12, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-12: "Subject ID" - creates it if necessary
*/
public ID getCer12_SubjectID() {
ID ret = null;
try {
Type t = this.getField(12, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-13: "Subject Name" - creates it if necessary
*/
public ST getSubjectName() {
ST ret = null;
try {
Type t = this.getField(13, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-13: "Subject Name" - creates it if necessary
*/
public ST getCer13_SubjectName() {
ST ret = null;
try {
Type t = this.getField(13, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Subject Directory Attribute Extension (Health Professional Data) (CER-14).
*/
public CWE[] getSubjectDirectoryAttributeExtensionHealthProfessionalData() {
CWE[] ret = null;
try {
Type[] t = this.getField(14);
ret = new CWE[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CWE)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* CER-14: "Subject Directory Attribute Extension (Health Professional Data)" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getSubjectDirectoryAttributeExtensionHealthProfessionalData(int rep) {
CWE ret = null;
try {
Type t = this.getField(14, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* CER-14: "Subject Directory Attribute Extension (Health Professional Data)" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getCer14_SubjectDirectoryAttributeExtensionHealthProfessionalData(int rep) {
CWE ret = null;
try {
Type t = this.getField(14, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Inserts a repetition of
* CER-14: "Subject Directory Attribute Extension (Health Professional Data)" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertSubjectDirectoryAttributeExtensionHealthProfessionalData(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(14, rep);
}
/**
* Inserts a repetition of
* CER-14: "Subject Directory Attribute Extension (Health Professional Data)" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertCer14_SubjectDirectoryAttributeExtensionHealthProfessionalData(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(14, rep);
}
/**
* Removes a repetition of
* CER-14: "Subject Directory Attribute Extension (Health Professional Data)" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeSubjectDirectoryAttributeExtensionHealthProfessionalData(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(14, rep);
}
/**
* Removes a repetition of
* CER-14: "Subject Directory Attribute Extension (Health Professional Data)" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeCer14_SubjectDirectoryAttributeExtensionHealthProfessionalData(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(14, rep);
}
/**
* Returns
* CER-15: "Subject Public Key Info" - creates it if necessary
*/
public CWE getSubjectPublicKeyInfo() {
CWE ret = null;
try {
Type t = this.getField(15, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-15: "Subject Public Key Info" - creates it if necessary
*/
public CWE getCer15_SubjectPublicKeyInfo() {
CWE ret = null;
try {
Type t = this.getField(15, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-16: "Authority Key Identifier" - creates it if necessary
*/
public CWE getAuthorityKeyIdentifier() {
CWE ret = null;
try {
Type t = this.getField(16, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-16: "Authority Key Identifier" - creates it if necessary
*/
public CWE getCer16_AuthorityKeyIdentifier() {
CWE ret = null;
try {
Type t = this.getField(16, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-17: "Basic Constraint" - creates it if necessary
*/
public ID getBasicConstraint() {
ID ret = null;
try {
Type t = this.getField(17, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-17: "Basic Constraint" - creates it if necessary
*/
public ID getCer17_BasicConstraint() {
ID ret = null;
try {
Type t = this.getField(17, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of CRL Distribution Point (CER-18).
*/
public CWE[] getCRLDistributionPoint() {
CWE[] ret = null;
try {
Type[] t = this.getField(18);
ret = new CWE[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CWE)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* CER-18: "CRL Distribution Point" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getCRLDistributionPoint(int rep) {
CWE ret = null;
try {
Type t = this.getField(18, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* CER-18: "CRL Distribution Point" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getCer18_CRLDistributionPoint(int rep) {
CWE ret = null;
try {
Type t = this.getField(18, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Inserts a repetition of
* CER-18: "CRL Distribution Point" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertCRLDistributionPoint(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(18, rep);
}
/**
* Inserts a repetition of
* CER-18: "CRL Distribution Point" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertCer18_CRLDistributionPoint(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(18, rep);
}
/**
* Removes a repetition of
* CER-18: "CRL Distribution Point" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeCRLDistributionPoint(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(18, rep);
}
/**
* Removes a repetition of
* CER-18: "CRL Distribution Point" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeCer18_CRLDistributionPoint(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(18, rep);
}
/**
* Returns
* CER-19: "Jurisdiction Country" - creates it if necessary
*/
public ID getJurisdictionCountry() {
ID ret = null;
try {
Type t = this.getField(19, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-19: "Jurisdiction Country" - creates it if necessary
*/
public ID getCer19_JurisdictionCountry() {
ID ret = null;
try {
Type t = this.getField(19, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-20: "Jurisdiction State/Province" - creates it if necessary
*/
public CWE getJurisdictionStateProvince() {
CWE ret = null;
try {
Type t = this.getField(20, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-20: "Jurisdiction State/Province" - creates it if necessary
*/
public CWE getCer20_JurisdictionStateProvince() {
CWE ret = null;
try {
Type t = this.getField(20, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-21: "Jurisdiction County/Parish" - creates it if necessary
*/
public CWE getJurisdictionCountyParish() {
CWE ret = null;
try {
Type t = this.getField(21, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-21: "Jurisdiction County/Parish" - creates it if necessary
*/
public CWE getCer21_JurisdictionCountyParish() {
CWE ret = null;
try {
Type t = this.getField(21, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Jurisdiction Breadth (CER-22).
*/
public CWE[] getJurisdictionBreadth() {
CWE[] ret = null;
try {
Type[] t = this.getField(22);
ret = new CWE[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CWE)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* CER-22: "Jurisdiction Breadth" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getJurisdictionBreadth(int rep) {
CWE ret = null;
try {
Type t = this.getField(22, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* CER-22: "Jurisdiction Breadth" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getCer22_JurisdictionBreadth(int rep) {
CWE ret = null;
try {
Type t = this.getField(22, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Inserts a repetition of
* CER-22: "Jurisdiction Breadth" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertJurisdictionBreadth(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(22, rep);
}
/**
* Inserts a repetition of
* CER-22: "Jurisdiction Breadth" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertCer22_JurisdictionBreadth(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(22, rep);
}
/**
* Removes a repetition of
* CER-22: "Jurisdiction Breadth" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeJurisdictionBreadth(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(22, rep);
}
/**
* Removes a repetition of
* CER-22: "Jurisdiction Breadth" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeCer22_JurisdictionBreadth(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(22, rep);
}
/**
* Returns
* CER-23: "Granting Date" - creates it if necessary
*/
public TS getGrantingDate() {
TS ret = null;
try {
Type t = this.getField(23, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-23: "Granting Date" - creates it if necessary
*/
public TS getCer23_GrantingDate() {
TS ret = null;
try {
Type t = this.getField(23, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-24: "Issuing Date" - creates it if necessary
*/
public TS getIssuingDate() {
TS ret = null;
try {
Type t = this.getField(24, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-24: "Issuing Date" - creates it if necessary
*/
public TS getCer24_IssuingDate() {
TS ret = null;
try {
Type t = this.getField(24, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-25: "Activation Date" - creates it if necessary
*/
public TS getActivationDate() {
TS ret = null;
try {
Type t = this.getField(25, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-25: "Activation Date" - creates it if necessary
*/
public TS getCer25_ActivationDate() {
TS ret = null;
try {
Type t = this.getField(25, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-26: "Inactivation Date" - creates it if necessary
*/
public TS getInactivationDate() {
TS ret = null;
try {
Type t = this.getField(26, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-26: "Inactivation Date" - creates it if necessary
*/
public TS getCer26_InactivationDate() {
TS ret = null;
try {
Type t = this.getField(26, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-27: "Expiration Date" - creates it if necessary
*/
public TS getExpirationDate() {
TS ret = null;
try {
Type t = this.getField(27, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-27: "Expiration Date" - creates it if necessary
*/
public TS getCer27_ExpirationDate() {
TS ret = null;
try {
Type t = this.getField(27, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-28: "Renewal Date" - creates it if necessary
*/
public TS getRenewalDate() {
TS ret = null;
try {
Type t = this.getField(28, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-28: "Renewal Date" - creates it if necessary
*/
public TS getCer28_RenewalDate() {
TS ret = null;
try {
Type t = this.getField(28, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-29: "Revocation Date" - creates it if necessary
*/
public TS getRevocationDate() {
TS ret = null;
try {
Type t = this.getField(29, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-29: "Revocation Date" - creates it if necessary
*/
public TS getCer29_RevocationDate() {
TS ret = null;
try {
Type t = this.getField(29, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-30: "Revocation Reason Code" - creates it if necessary
*/
public CE getRevocationReasonCode() {
CE ret = null;
try {
Type t = this.getField(30, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-30: "Revocation Reason Code" - creates it if necessary
*/
public CE getCer30_RevocationReasonCode() {
CE ret = null;
try {
Type t = this.getField(30, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-31: "Certificate Status" - creates it if necessary
*/
public CWE getCertificateStatus() {
CWE ret = null;
try {
Type t = this.getField(31, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* CER-31: "Certificate Status" - creates it if necessary
*/
public CWE getCer31_CertificateStatus() {
CWE ret = null;
try {
Type t = this.getField(31, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/** {@inheritDoc} */
protected Type createNewTypeWithoutReflection(int field) {
switch (field) {
case 0: return new SI(getMessage());
case 1: return new ST(getMessage());
case 2: return new ST(getMessage());
case 3: return new XON(getMessage());
case 4: return new XCN(getMessage());
case 5: return new ED(getMessage());
case 6: return new ID(getMessage(), new Integer( 399 ));
case 7: return new CWE(getMessage());
case 8: return new CWE(getMessage());
case 9: return new CWE(getMessage());
case 10: return new CWE(getMessage());
case 11: return new ID(getMessage(), new Integer( 0 ));
case 12: return new ST(getMessage());
case 13: return new CWE(getMessage());
case 14: return new CWE(getMessage());
case 15: return new CWE(getMessage());
case 16: return new ID(getMessage(), new Integer( 136 ));
case 17: return new CWE(getMessage());
case 18: return new ID(getMessage(), new Integer( 399 ));
case 19: return new CWE(getMessage());
case 20: return new CWE(getMessage());
case 21: return new CWE(getMessage());
case 22: return new TS(getMessage());
case 23: return new TS(getMessage());
case 24: return new TS(getMessage());
case 25: return new TS(getMessage());
case 26: return new TS(getMessage());
case 27: return new TS(getMessage());
case 28: return new TS(getMessage());
case 29: return new CE(getMessage());
case 30: return new CWE(getMessage());
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy