public override void Populate(HL7Element element, IEnumerable <string> tableIds = null) { var tblsUsed = 0; OrganizationName = element.ElementValue(0); OrganizationNameTypeCode = NewIS(element.ElementValue(1), NextTableId(tableIds, ref tblsUsed)); ID = element.IndexedElement(2); CheckDigit = element.ElementValue(3); CheckDigitScheme = NewID(element.ElementValue(4), NextTableId(tableIds, ref tblsUsed)); AssigningAuthority = element.AsHD(5, tableIds?.Skip(tblsUsed), Tables); tblsUsed += HD_HierarchicDesignator.TotalCodedFieldCount; IdentifierTypeCode = NewIS(element.ElementValue(6), NextTableId(tableIds, ref tblsUsed)); AssigningFacility = element.AsHD(7, tableIds, Tables); }
public override void Populate(HL7Element element, IEnumerable <string> tableIds = null) { var tblsUsed = 0; ID = element.ElementValue(0); CheckDigit = element.ElementValue(1); CheckDigitScheme = NewID(element.ElementValue(2), NextTableId(tableIds, ref tblsUsed), Tables); AssigningAuthority = element.AsHD(3, tableIds?.Skip(tblsUsed), Tables); tblsUsed += HD_HierarchicDesignator.TotalCodedFieldCount; IdentifierTypeCode = NewID(element.ElementValue(4), NextTableId(tableIds, ref tblsUsed), Tables); AssigningFacility = element.AsHD(5, tableIds?.Skip(tblsUsed), Tables); tblsUsed += HD_HierarchicDesignator.TotalCodedFieldCount; EffectiveDate = element.FromTS(6); ExpirationDate = element.FromTS(7); }
public override void Populate(HL7Element element, IEnumerable <string> tableIds = null) { if (element.Count == 0) { Data = element; } else { var tblsUsed = 0; SourceApplication = element.AsHD(0, tableIds, Tables); tblsUsed += HD_HierarchicDesignator.TotalCodedFieldCount; TypeOfData = NewID(element.ElementValue(1), NextTableId(tableIds, ref tblsUsed)); DataSubType = NewID(element.ElementValue(2), NextTableId(tableIds, ref tblsUsed)); Encoding = NewID(element.ElementValue(3), NextTableId(tableIds, ref tblsUsed)); Data = element.ElementValue(4); }; }