Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
230 changes: 226 additions & 4 deletions src/NHapi.Model.V23/Segment/IN1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,30 @@ public CE InsurancePlanID
}
}

///<summary>
/// Returns Insurance Company ID(IN1-3).
///</summary>
[Obsolete("Use 'GetInsuranceCompanyID(int rep)' instead.")]
public CX InsuranceCompanyID
{
get{
CX ret = null;
try
{
IType t = this.GetField(3, 0);
ret = (CX)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 Insurance Company ID(IN1-3).
/// throws HL7Exception if the repetition number is invalid.
Expand Down Expand Up @@ -250,6 +274,31 @@ public int InsuranceCompanyIDRepetitionsUsed
}
}
}

///<summary>
/// Returns Insurance Company Name(IN1-4).
///</summary>
[Obsolete("Use 'GetInsuranceCompanyName(int rep)' instead.")]
public XON InsuranceCompanyName
{
get{
XON ret = null;
try
{
IType t = this.GetField(4, 0);
ret = (XON)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 Insurance Company Name(IN1-4).
/// throws HL7Exception if the repetition number is invalid.
Expand Down Expand Up @@ -324,6 +373,31 @@ public int InsuranceCompanyNameRepetitionsUsed
}
}
}

///<summary>
/// Returns Insurance Company Address(IN1-5).
///</summary>
[Obsolete("Use 'GetInsuranceCompanyAddress(int rep)' instead.")]
public XAD InsuranceCompanyAddress
{
get{
XAD ret = null;
try
{
IType t = this.GetField(5, 0);
ret = (XAD)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 Insurance Company Address(IN1-5).
/// throws HL7Exception if the repetition number is invalid.
Expand Down Expand Up @@ -398,6 +472,31 @@ public int InsuranceCompanyAddressRepetitionsUsed
}
}
}

///<summary>
/// Returns Insurance Co. Contact Ppers(IN1-6).
///</summary>
[Obsolete("Use 'GetInsuranceCoContactPpers(int rep)' instead.")]
public XPN InsuranceCoContactPpers
{
get{
XPN ret = null;
try
{
IType t = this.GetField(6, 0);
ret = (XPN)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 Insurance Co. Contact Person(IN1-6).
/// throws HL7Exception if the repetition number is invalid.
Expand Down Expand Up @@ -546,10 +645,10 @@ public int InsuranceCoPhoneNumberRepetitionsUsed
}
}

///<summary>
/// Returns Group Number(IN1-8).
///</summary>
public ST GroupNumber
///<summary>
/// Returns Group Number(IN1-8).
///</summary>
public ST GroupNumber
{
get{
ST ret = null;
Expand All @@ -569,6 +668,30 @@ public ST GroupNumber
}
}

///<summary>
/// Returns Group Name(IN1-9).
///</summary>
[Obsolete("Use 'GetGroupName(int rep)' instead.")]
public XON GroupName
{
get{
XON ret = null;
try
{
IType t = this.GetField(9, 0);
ret = (XON)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 Group Name(IN1-9).
/// throws HL7Exception if the repetition number is invalid.
Expand Down Expand Up @@ -643,6 +766,31 @@ public int GroupNameRepetitionsUsed
}
}
}

///<summary>
/// Returns Insured's group employer ID(IN1-10).
///</summary>
[Obsolete("Use 'GetInsuredSGroupEmployerID(int rep)' instead.")]
public CX InsuredSGroupEmployerID
{
get{
CX ret = null;
try
{
IType t = this.GetField(10, 0);
ret = (CX)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 Insured's group employer ID(IN1-10).
/// throws HL7Exception if the repetition number is invalid.
Expand Down Expand Up @@ -717,6 +865,31 @@ public int InsuredSGroupEmployerIDRepetitionsUsed
}
}
}

///<summary>
/// Returns Insured's Group Emp Name(IN1-11).
///</summary>
[Obsolete("Use 'GetInsuredSGroupEmpName(int rep)' instead.")]
public XON InsuredSGroupEmpName
{
get{
XON ret = null;
try
{
IType t = this.GetField(11, 0);
ret = (XON)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 Insured's Group Emp Name(IN1-11).
/// throws HL7Exception if the repetition number is invalid.
Expand Down Expand Up @@ -791,6 +964,7 @@ public int InsuredSGroupEmpNameRepetitionsUsed
}
}
}

///<summary>
/// Returns Plan Effective Date(IN1-12).
///</summary>
Expand Down Expand Up @@ -883,6 +1057,30 @@ public IS PlanType
}
}

///<summary>
/// Returns Name of Insured(IN1-16).
///</summary>
[Obsolete("Use 'GetNameOfInsured(int rep)' instead.")]
public XPN NameOfInsured
{
get{
XPN ret = null;
try
{
IType t = this.GetField(16, 0);
ret = (XPN)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 Name of Insured(IN1-16).
/// throws HL7Exception if the repetition number is invalid.
Expand Down Expand Up @@ -1004,6 +1202,30 @@ public TS InsuredSDateOfBirth
}
}

///<summary>
/// Returns Insured's Address(IN1-19).
///</summary>
[Obsolete("Use 'GetInsuredSAddress(int rep)' instead.")]
public XAD InsuredSAddress
{
get{
XAD ret = null;
try
{
IType t = this.GetField(19, 0);
ret = (XAD)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 Insured's Address(IN1-19).
/// throws HL7Exception if the repetition number is invalid.
Expand Down
Loading