Exemplo n.º 1
0
Arquivo: OCD.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a OCD.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public OCD(Message message, string description)
     : base(message, description)
 {
     data = new Type[2];
     data[0] = new CNE(message,"Occurrence Code");
     data[1] = new DT(message,"Occurrence Date");
 }
Exemplo n.º 2
0
Arquivo: UVC.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a UVC.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public UVC(Message message, string description)
     : base(message, description)
 {
     data = new Type[2];
     data[0] = new CNE(message,"Value Code");
     data[1] = new MO(message,"Value Amount");
 }
Exemplo n.º 3
0
 ///<summary>
 /// Creates a OSP.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public OSP(Message message, string description) : base(message, description)
 {
     data    = new Type[3];
     data[0] = new CNE(message, "Occurrence Span Code");
     data[1] = new DT(message, "Occurrence Span Start Date");
     data[2] = new DT(message, "Occurrence Span Stop Date");
 }
Exemplo n.º 4
0
Arquivo: OSP.cs Projeto: snosrap/nhapi
 ///<summary>
 /// Creates a OSP.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public OSP(Message message, string description)
     : base(message, description)
 {
     data = new Type[3];
     data[0] = new CNE(message,"Occurrence Span Code");
     data[1] = new DT(message,"Occurrence Span Start Date");
     data[2] = new DT(message,"Occurrence Span Stop Date");
 }
Exemplo n.º 5
0
Arquivo: BPX.cs Projeto: snosrap/nhapi
 /**
    * Returns all repetitions of BC Special Testing (BPX-12).
    */
 public CNE[] getBCSpecialTesting()
 {
     CNE[] ret = null;
     try {
     Type[] t = this.getField(12);
     ret = new CNE[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (CNE)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;
 }
Exemplo n.º 6
0
 ///<summary>
 /// Creates a OCD.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public OCD(Message message, string description) : base(message, description)
 {
     data    = new Type[2];
     data[0] = new CNE(message, "Occurrence Code");
     data[1] = new DT(message, "Occurrence Date");
 }
Exemplo n.º 7
0
 ///<summary>
 /// Creates a UVC.
 /// <param name="message">The Message to which this Type belongs</param>
 ///</summary>
 public UVC(Message message, string description) : base(message, description)
 {
     data    = new Type[2];
     data[0] = new CNE(message, "Value Code");
     data[1] = new MO(message, "Value Amount");
 }