using System;
using NHapi.Base;
using NHapi.Base.Parser;
using NHapi.Base.Model;
using NHapi.Model.V251.Datatype;
using NHapi.Base.Log;
namespace NHapi.Model.V251.Segment{
///<summary>
/// Represents an HL7 PCR message segment.
/// This segment has the following fields:<ol>
///<li>PCR-1: Implicated Product (CE)</li>
///<li>PCR-2: Generic Product (IS)</li>
///<li>PCR-3: Product Class (CE)</li>
///<li>PCR-4: Total Duration Of Therapy (CQ)</li>
///<li>PCR-5: Product Manufacture Date (TS)</li>
///<li>PCR-6: Product Expiration Date (TS)</li>
///<li>PCR-7: Product Implantation Date (TS)</li>
///<li>PCR-8: Product Explantation Date (TS)</li>
///<li>PCR-9: Single Use Device (IS)</li>
///<li>PCR-10: Indication For Product Use (CE)</li>
///<li>PCR-11: Product Problem (IS)</li>
///<li>PCR-12: Product Serial/Lot Number (ST)</li>
///<li>PCR-13: Product Available For Inspection (IS)</li>
///<li>PCR-14: Product Evaluation Performed (CE)</li>
///<li>PCR-15: Product Evaluation Status (CE)</li>
///<li>PCR-16: Product Evaluation Results (CE)</li>
///<li>PCR-17: Evaluated Product Source (ID)</li>
///<li>PCR-18: Date Product Returned To Manufacturer (TS)</li>
///<li>PCR-19: Device Operator Qualifications (ID)</li>
///<li>PCR-20: Relatedness Assessment (ID)</li>
///<li>PCR-21: Action Taken In Response To The Event (ID)</li>
///<li>PCR-22: Event Causality Observations (ID)</li>
///<li>PCR-23: Indirect Exposure Mechanism (ID)</li>
///</ol>
/// The get...() methods return data from individual fields. These methods
/// do not throw exceptions and may therefore have to handle exceptions internally.
/// If an exception is handled internally, it is logged and null is returned.
/// This is not expected to happen - if it does happen this indicates not so much
/// an exceptional circumstance as a bug in the code for this class.
///</summary>
[Serializable]
public class PCR : AbstractSegment {
/**
* Creates a PCR (Possible Causal Relationship) segment object that belongs to the given
* message.
*/
public PCR(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
IMessage message = Message;
try {
this.add(typeof(CE), true, 1, 250, new System.Object[]{message}, "Implicated Product");
this.add(typeof(IS), false, 1, 1, new System.Object[]{message, 249}, "Generic Product");
this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Product Class");
this.add(typeof(CQ), false, 1, 8, new System.Object[]{message}, "Total Duration Of Therapy");
this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Product Manufacture Date");
this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Product Expiration Date");
this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Product Implantation Date");
this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Product Explantation Date");
this.add(typeof(IS), false, 1, 8, new System.Object[]{message, 244}, "Single Use Device");
this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Indication For Product Use");
this.add(typeof(IS), false, 1, 8, new System.Object[]{message, 245}, "Product Problem");
this.add(typeof(ST), false, 3, 30, new System.Object[]{message}, "Product Serial/Lot Number");
this.add(typeof(IS), false, 1, 1, new System.Object[]{message, 246}, "Product Available For Inspection");
this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Product Evaluation Performed");
this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Product Evaluation Status");
this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Product Evaluation Results");
this.add(typeof(ID), false, 1, 8, new System.Object[]{message, 248}, "Evaluated Product Source");
this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Date Product Returned To Manufacturer");
this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 242}, "Device Operator Qualifications");
this.add(typeof(ID), false, 1, 1, new System.Object[]{message, 250}, "Relatedness Assessment");
this.add(typeof(ID), false, 6, 2, new System.Object[]{message, 251}, "Action Taken In Response To The Event");
this.add(typeof(ID), false, 6, 2, new System.Object[]{message, 252}, "Event Causality Observations");
this.add(typeof(ID), false, 3, 1, new System.Object[]{message, 253}, "Indirect Exposure Mechanism");
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + GetType().Name, he);
}
}
///<summary>
/// Returns Implicated Product(PCR-1).
///</summary>
public CE ImplicatedProduct
{
get{
CE ret = null;
try
{
IType t = this.GetField(1, 0);
ret = (CE)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Generic Product(PCR-2).
///</summary>
public IS GenericProduct
{
get{
IS ret = null;
try
{
IType t = this.GetField(2, 0);
ret = (IS)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Product Class(PCR-3).
///</summary>
public CE ProductClass
{
get{
CE ret = null;
try
{
IType t = this.GetField(3, 0);
ret = (CE)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Total Duration Of Therapy(PCR-4).
///</summary>
public CQ TotalDurationOfTherapy
{
get{
CQ ret = null;
try
{
IType t = this.GetField(4, 0);
ret = (CQ)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Product Manufacture Date(PCR-5).
///</summary>
public TS ProductManufactureDate
{
get{
TS ret = null;
try
{
IType t = this.GetField(5, 0);
ret = (TS)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Product Expiration Date(PCR-6).
///</summary>
public TS ProductExpirationDate
{
get{
TS ret = null;
try
{
IType t = this.GetField(6, 0);
ret = (TS)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Product Implantation Date(PCR-7).
///</summary>
public TS ProductImplantationDate
{
get{
TS ret = null;
try
{
IType t = this.GetField(7, 0);
ret = (TS)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Product Explantation Date(PCR-8).
///</summary>
public TS ProductExplantationDate
{
get{
TS ret = null;
try
{
IType t = this.GetField(8, 0);
ret = (TS)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Single Use Device(PCR-9).
///</summary>
public IS SingleUseDevice
{
get{
IS ret = null;
try
{
IType t = this.GetField(9, 0);
ret = (IS)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Indication For Product Use(PCR-10).
///</summary>
public CE IndicationForProductUse
{
get{
CE ret = null;
try
{
IType t = this.GetField(10, 0);
ret = (CE)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Product Problem(PCR-11).
///</summary>
public IS ProductProblem
{
get{
IS ret = null;
try
{
IType t = this.GetField(11, 0);
ret = (IS)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns a single repetition of Product Serial/Lot Number(PCR-12).
/// throws HL7Exception if the repetition number is invalid.
/// <param name="rep">The repetition number (this is a repeating field)</param>
///</summary>
public ST GetProductSerialLotNumber(int rep)
{
ST ret = null;
try
{
IType t = this.GetField(12, rep);
ret = (ST)t;
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
///<summary>
/// Returns all repetitions of Product Serial/Lot Number (PCR-12).
///</summary>
public ST[] GetProductSerialLotNumber() {
ST[] ret = null;
try {
IType[] t = this.GetField(12);
ret = new ST[t.Length];
for (int i = 0; i < ret.Length; i++) {
ret[i] = (ST)t[i];
}
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
return ret;
}
///<summary>
/// Returns the total repetitions of Product Serial/Lot Number (PCR-12).
///</summary>
public int ProductSerialLotNumberRepetitionsUsed
{
get{
try {
return GetTotalFieldRepetitionsUsed(12);
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
}
}
///<summary>
/// Returns Product Available For Inspection(PCR-13).
///</summary>
public IS ProductAvailableForInspection
{
get{
IS ret = null;
try
{
IType t = this.GetField(13, 0);
ret = (IS)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Product Evaluation Performed(PCR-14).
///</summary>
public CE ProductEvaluationPerformed
{
get{
CE ret = null;
try
{
IType t = this.GetField(14, 0);
ret = (CE)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Product Evaluation Status(PCR-15).
///</summary>
public CE ProductEvaluationStatus
{
get{
CE ret = null;
try
{
IType t = this.GetField(15, 0);
ret = (CE)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Product Evaluation Results(PCR-16).
///</summary>
public CE ProductEvaluationResults
{
get{
CE ret = null;
try
{
IType t = this.GetField(16, 0);
ret = (CE)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Evaluated Product Source(PCR-17).
///</summary>
public ID EvaluatedProductSource
{
get{
ID ret = null;
try
{
IType t = this.GetField(17, 0);
ret = (ID)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Date Product Returned To Manufacturer(PCR-18).
///</summary>
public TS DateProductReturnedToManufacturer
{
get{
TS ret = null;
try
{
IType t = this.GetField(18, 0);
ret = (TS)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Device Operator Qualifications(PCR-19).
///</summary>
public ID DeviceOperatorQualifications
{
get{
ID ret = null;
try
{
IType t = this.GetField(19, 0);
ret = (ID)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Relatedness Assessment(PCR-20).
///</summary>
public ID RelatednessAssessment
{
get{
ID ret = null;
try
{
IType t = this.GetField(20, 0);
ret = (ID)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns a single repetition of Action Taken In Response To The Event(PCR-21).
/// throws HL7Exception if the repetition number is invalid.
/// <param name="rep">The repetition number (this is a repeating field)</param>
///</summary>
public ID GetActionTakenInResponseToTheEvent(int rep)
{
ID ret = null;
try
{
IType t = this.GetField(21, rep);
ret = (ID)t;
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
///<summary>
/// Returns all repetitions of Action Taken In Response To The Event (PCR-21).
///</summary>
public ID[] GetActionTakenInResponseToTheEvent() {
ID[] ret = null;
try {
IType[] t = this.GetField(21);
ret = new ID[t.Length];
for (int i = 0; i < ret.Length; i++) {
ret[i] = (ID)t[i];
}
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
return ret;
}
///<summary>
/// Returns the total repetitions of Action Taken In Response To The Event (PCR-21).
///</summary>
public int ActionTakenInResponseToTheEventRepetitionsUsed
{
get{
try {
return GetTotalFieldRepetitionsUsed(21);
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
}
}
///<summary>
/// Returns a single repetition of Event Causality Observations(PCR-22).
/// throws HL7Exception if the repetition number is invalid.
/// <param name="rep">The repetition number (this is a repeating field)</param>
///</summary>
public ID GetEventCausalityObservations(int rep)
{
ID ret = null;
try
{
IType t = this.GetField(22, rep);
ret = (ID)t;
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
///<summary>
/// Returns all repetitions of Event Causality Observations (PCR-22).
///</summary>
public ID[] GetEventCausalityObservations() {
ID[] ret = null;
try {
IType[] t = this.GetField(22);
ret = new ID[t.Length];
for (int i = 0; i < ret.Length; i++) {
ret[i] = (ID)t[i];
}
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
return ret;
}
///<summary>
/// Returns the total repetitions of Event Causality Observations (PCR-22).
///</summary>
public int EventCausalityObservationsRepetitionsUsed
{
get{
try {
return GetTotalFieldRepetitionsUsed(22);
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
}
}
///<summary>
/// Returns a single repetition of Indirect Exposure Mechanism(PCR-23).
/// throws HL7Exception if the repetition number is invalid.
/// <param name="rep">The repetition number (this is a repeating field)</param>
///</summary>
public ID GetIndirectExposureMechanism(int rep)
{
ID ret = null;
try
{
IType t = this.GetField(23, rep);
ret = (ID)t;
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
///<summary>
/// Returns all repetitions of Indirect Exposure Mechanism (PCR-23).
///</summary>
public ID[] GetIndirectExposureMechanism() {
ID[] ret = null;
try {
IType[] t = this.GetField(23);
ret = new ID[t.Length];
for (int i = 0; i < ret.Length; i++) {
ret[i] = (ID)t[i];
}
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
return ret;
}
///<summary>
/// Returns the total repetitions of Indirect Exposure Mechanism (PCR-23).
///</summary>
public int IndirectExposureMechanismRepetitionsUsed
{
get{
try {
return GetTotalFieldRepetitionsUsed(23);
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
}
}
}}
|