Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

In Connexion v14, some work has gone into the Connexion.Core library to make the interface easier to use. This has resulted in some required changes to devices that make use of this library. This document list the changes that were made.

 

Connexion.Core v13Connexion.Core v14
AssemblyVersion 1.0.0.0AssemblyVersion 14.0.0.0
Compiled against .NET 4.0Compiled against .NET 4.5
class Segmentclass HL7Segment
class Fieldclass HL7Field
class FieldList<T>class HL7FieldCollection
n/aclass HL7Repeat
n/aclass HL7RepeatCollection
n/aclass HL7Component
n/aclass HL7ComponentCollection
n/aclass HL7SubcomponentCollection

Iterating through nodes in the 1st repeat of the 7th field

var field= segment.Fields[7];
foreach(HL7Subcomponent sub in field.Repeat(1))
{
    // DO SOMETHING
}

Iterating through nodes in the 1st repeat of the 7th field

var field= segment.Fields[7];
var repeat = field.Repeats.FirstOrDefault();

foreach(HL7Component comp in repeat.Components)
{
    foreach(HL7Subcomponent sub in comp.Subcomponents)
    {
        // DO SOMETHING

    }
}

 

Field.RepeatCountHL7Field.Repeats.Count
.ValueIn v14, only the subcomponent has the .Value method, use .Set
if you want to set the value of an entire field, or component.

 

 

  • No labels