PRB.cs :  » Network-Clients » nHapi » NHapi » Model » V251 » Segment » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Network Clients » nHapi 
nHapi » NHapi » Model » V251 » Segment » PRB.cs
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 PRB message segment. 
/// This segment has the following fields:<ol>
///<li>PRB-1: Action Code (ID)</li>
///<li>PRB-2: Action Date/Time (TS)</li>
///<li>PRB-3: Problem ID (CE)</li>
///<li>PRB-4: Problem Instance ID (EI)</li>
///<li>PRB-5: Episode of Care ID (EI)</li>
///<li>PRB-6: Problem List Priority (NM)</li>
///<li>PRB-7: Problem Established Date/Time (TS)</li>
///<li>PRB-8: Anticipated Problem Resolution Date/Time (TS)</li>
///<li>PRB-9: Actual Problem Resolution Date/Time (TS)</li>
///<li>PRB-10: Problem Classification (CE)</li>
///<li>PRB-11: Problem Management Discipline (CE)</li>
///<li>PRB-12: Problem Persistence (CE)</li>
///<li>PRB-13: Problem Confirmation Status (CE)</li>
///<li>PRB-14: Problem Life Cycle Status (CE)</li>
///<li>PRB-15: Problem Life Cycle Status Date/Time (TS)</li>
///<li>PRB-16: Problem Date of Onset (TS)</li>
///<li>PRB-17: Problem Onset Text (ST)</li>
///<li>PRB-18: Problem Ranking (CE)</li>
///<li>PRB-19: Certainty of Problem (CE)</li>
///<li>PRB-20: Probability of Problem (0-1) (NM)</li>
///<li>PRB-21: Individual Awareness of Problem (CE)</li>
///<li>PRB-22: Problem Prognosis (CE)</li>
///<li>PRB-23: Individual Awareness of Prognosis (CE)</li>
///<li>PRB-24: Family/Significant Other Awareness of Problem/Prognosis (ST)</li>
///<li>PRB-25: Security/Sensitivity (CE)</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 PRB : AbstractSegment  {

  /**
   * Creates a PRB (Problem Details) segment object that belongs to the given 
   * message.  
   */
  public PRB(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
  IMessage message = Message;
    try {
       this.add(typeof(ID), true, 1, 2, new System.Object[]{message, 287}, "Action Code");
       this.add(typeof(TS), true, 1, 26, new System.Object[]{message}, "Action Date/Time");
       this.add(typeof(CE), true, 1, 250, new System.Object[]{message}, "Problem ID");
       this.add(typeof(EI), true, 1, 60, new System.Object[]{message}, "Problem Instance ID");
       this.add(typeof(EI), false, 1, 60, new System.Object[]{message}, "Episode of Care ID");
       this.add(typeof(NM), false, 1, 60, new System.Object[]{message}, "Problem List Priority");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Problem Established Date/Time");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Anticipated Problem Resolution Date/Time");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Actual Problem Resolution Date/Time");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Problem Classification");
       this.add(typeof(CE), false, 0, 250, new System.Object[]{message}, "Problem Management Discipline");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Problem Persistence");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Problem Confirmation Status");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Problem Life Cycle Status");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Problem Life Cycle Status Date/Time");
       this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Problem Date of Onset");
       this.add(typeof(ST), false, 1, 80, new System.Object[]{message}, "Problem Onset Text");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Problem Ranking");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Certainty of Problem");
       this.add(typeof(NM), false, 1, 5, new System.Object[]{message}, "Probability of Problem (0-1)");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Individual Awareness of Problem");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Problem Prognosis");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Individual Awareness of Prognosis");
       this.add(typeof(ST), false, 1, 200, new System.Object[]{message}, "Family/Significant Other Awareness of Problem/Prognosis");
       this.add(typeof(CE), false, 1, 250, new System.Object[]{message}, "Security/Sensitivity");
    } catch (HL7Exception he) {
        HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + GetType().Name, he);
    }
  }

  ///<summary>
  /// Returns Action Code(PRB-1).
  ///</summary>
  public ID ActionCode
  {
    get{
      ID ret = null;
      try
      {
      IType t = this.GetField(1, 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 Action Date/Time(PRB-2).
  ///</summary>
  public TS ActionDateTime
  {
    get{
      TS ret = null;
      try
      {
      IType t = this.GetField(2, 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 Problem ID(PRB-3).
  ///</summary>
  public CE ProblemID
  {
    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 Problem Instance ID(PRB-4).
  ///</summary>
  public EI ProblemInstanceID
  {
    get{
      EI ret = null;
      try
      {
      IType t = this.GetField(4, 0);
        ret = (EI)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 Episode of Care ID(PRB-5).
  ///</summary>
  public EI EpisodeOfCareID
  {
    get{
      EI ret = null;
      try
      {
      IType t = this.GetField(5, 0);
        ret = (EI)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 Problem List Priority(PRB-6).
  ///</summary>
  public NM ProblemListPriority
  {
    get{
      NM ret = null;
      try
      {
      IType t = this.GetField(6, 0);
        ret = (NM)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 Problem Established Date/Time(PRB-7).
  ///</summary>
  public TS ProblemEstablishedDateTime
  {
    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 Anticipated Problem Resolution Date/Time(PRB-8).
  ///</summary>
  public TS AnticipatedProblemResolutionDateTime
  {
    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 Actual Problem Resolution Date/Time(PRB-9).
  ///</summary>
  public TS ActualProblemResolutionDateTime
  {
    get{
      TS ret = null;
      try
      {
      IType t = this.GetField(9, 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 Problem Classification(PRB-10).
  ///</summary>
  public CE ProblemClassification
  {
    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 a single repetition of Problem Management Discipline(PRB-11).
  /// throws HL7Exception if the repetition number is invalid.
  /// <param name="rep">The repetition number (this is a repeating field)</param>
  ///</summary>
  public CE GetProblemManagementDiscipline(int rep)
  {
      CE ret = null;
      try
      {
      IType t = this.GetField(11, rep);
        ret = (CE)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 Problem Management Discipline (PRB-11).
   ///</summary>
  public CE[] GetProblemManagementDiscipline() {
     CE[] ret = null;
    try {
        IType[] t = this.GetField(11);  
        ret = new CE[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (CE)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 Problem Management Discipline (PRB-11).
   ///</summary>
  public int ProblemManagementDisciplineRepetitionsUsed
{
get{
    try {
  return GetTotalFieldRepetitionsUsed(11);
    }
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 Problem Persistence(PRB-12).
  ///</summary>
  public CE ProblemPersistence
  {
    get{
      CE ret = null;
      try
      {
      IType t = this.GetField(12, 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 Problem Confirmation Status(PRB-13).
  ///</summary>
  public CE ProblemConfirmationStatus
  {
    get{
      CE ret = null;
      try
      {
      IType t = this.GetField(13, 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 Problem Life Cycle Status(PRB-14).
  ///</summary>
  public CE ProblemLifeCycleStatus
  {
    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 Problem Life Cycle Status Date/Time(PRB-15).
  ///</summary>
  public TS ProblemLifeCycleStatusDateTime
  {
    get{
      TS ret = null;
      try
      {
      IType t = this.GetField(15, 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 Problem Date of Onset(PRB-16).
  ///</summary>
  public TS ProblemDateOfOnset
  {
    get{
      TS ret = null;
      try
      {
      IType t = this.GetField(16, 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 Problem Onset Text(PRB-17).
  ///</summary>
  public ST ProblemOnsetText
  {
    get{
      ST ret = null;
      try
      {
      IType t = this.GetField(17, 0);
        ret = (ST)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 Problem Ranking(PRB-18).
  ///</summary>
  public CE ProblemRanking
  {
    get{
      CE ret = null;
      try
      {
      IType t = this.GetField(18, 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 Certainty of Problem(PRB-19).
  ///</summary>
  public CE CertaintyOfProblem
  {
    get{
      CE ret = null;
      try
      {
      IType t = this.GetField(19, 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 Probability of Problem (0-1)(PRB-20).
  ///</summary>
  public NM ProbabilityOfProblem
  {
    get{
      NM ret = null;
      try
      {
      IType t = this.GetField(20, 0);
        ret = (NM)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 Individual Awareness of Problem(PRB-21).
  ///</summary>
  public CE IndividualAwarenessOfProblem
  {
    get{
      CE ret = null;
      try
      {
      IType t = this.GetField(21, 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 Problem Prognosis(PRB-22).
  ///</summary>
  public CE ProblemPrognosis
  {
    get{
      CE ret = null;
      try
      {
      IType t = this.GetField(22, 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 Individual Awareness of Prognosis(PRB-23).
  ///</summary>
  public CE IndividualAwarenessOfPrognosis
  {
    get{
      CE ret = null;
      try
      {
      IType t = this.GetField(23, 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 Family/Significant Other Awareness of Problem/Prognosis(PRB-24).
  ///</summary>
  public ST FamilySignificantOtherAwarenessOfProblemPrognosis
  {
    get{
      ST ret = null;
      try
      {
      IType t = this.GetField(24, 0);
        ret = (ST)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 Security/Sensitivity(PRB-25).
  ///</summary>
  public CE SecuritySensitivity
  {
    get{
      CE ret = null;
      try
      {
      IType t = this.GetField(25, 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;
  }
  }


}}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.