public CodedDataValue(string value, string tableId, IDataTableProvider tables = null) { this.tableProvider = tables; this.tableId = tableId; this.Value = value; this.table = TableProvider.GetCodeTable(tableId); }
public DataTableService(IDataTableProvider dataProvider) : this() { ErrorTrap.AddRaisableAssertion<InvalidOperationException>(dataProvider != null, "dataProvider != null"); this.dataProvider = dataProvider; }
public CodedDataValue(Dictionary <string, string> table, string tableId = null, IDataTableProvider tables = null) { this.tableProvider = tables; this.table = table; this.tableId = tableId; LinkTable(); }
public static ICodedDataValue AsCodedValue(this HL7Element element, int index = -1, string tableId = "", IDataTableProvider tables = null) { string value = element.ElementValue(index); return(new CodedDataValue(value, tableId, tables)); }
protected IS_CodedValue NewIS(string value, string tableId, IDataTableProvider tables = null) { if (tables == null) { tables = Tables; } return(new IS_CodedValue(value, tableId, tables)); }
public HD_HierarchicDesignator(HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) : base(element, tableIds, tables) { }
public HL7TypeBase(HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { Tables = tables; Populate(element, tableIds); }
public static IEnumerable <XPN_ExtendedPersonName> AsXPNs(this HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { var xpns = new List <XPN_ExtendedPersonName>(); if (element.IsRepeatingField) { xpns.AddRange(element.Select(e => new XPN_ExtendedPersonName(e, tableIds, tables))); } else { xpns.Add(new XPN_ExtendedPersonName(element, tableIds, tables)); }; return(xpns); }
public CX_CompositeId(HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) : base(element, tableIds, tables) { }
/// <summary> /// Safely Extract all HL7 CE Coded Elements type from a HL7 Element assuming sutiable content /// </summary> /// <param name="element"></param> /// <returns>an IEnumerable of HL7 CE objects</returns> public static IEnumerable <CE_CodedElement> AsCEs(this HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { var ces = new List <CE_CodedElement>(); if (element.IsRepeatingField) { ces.AddRange(element.Select(e => new CE_CodedElement(e, tableIds, tables))); } else { ces.Add(new CE_CodedElement(element, tableIds, tables)); } return(ces); }
public static IEnumerable <XAD_ExtendedAddress> AsXADs(this HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { var xads = new List <XAD_ExtendedAddress>(); if (element.IsRepeatingField) { xads.AddRange(element.Select(e => new XAD_ExtendedAddress(e, tableIds, tables))); } else { xads.Add(new XAD_ExtendedAddress(element, tableIds, tables)); } return(xads); }
/// <summary> /// Safely Extract a ED (Encapsulated Data) from a HL7 Element Assuming suitable content (eg HL7 (ED) OBX[5]) /// </summary> /// <param name="element"></param> /// <returns>a HL7 ED object</returns> public static ED_EncapsulatedData AsED(this HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { return(new ED_EncapsulatedData(element, tableIds, tables)); }
/// <summary> /// Safely Extract all HL7 XCN (Extended Composite ID and Name) from a HL7 Element assuming suitable content /// </summary> /// <param name="element"></param> /// <returns>An IEnumerable of HL7 XCN Objects</returns> public static IEnumerable <XCN_ExtendedCompositeIDAndName> AsXCNs(this HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { var xcns = new List <XCN_ExtendedCompositeIDAndName>(); if (element.IsRepeatingField) { xcns.AddRange(element.Select(e => new XCN_ExtendedCompositeIDAndName(e, tableIds, tables))); } else { xcns.Add(new XCN_ExtendedCompositeIDAndName(element, tableIds, tables)); } return(xcns); }
/// <summary> /// Safely Extract a HL7 CX (Composite ID) from a HL7 Element assuming suitable content /// </summary> /// <param name="element"></param> /// <returns>A HL7 CX object</returns> public static CX_CompositeId AsCX(this HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { return(new CX_CompositeId(element, tableIds, tables)); }
public IS_CodedValue(string value, Dictionary <string, string> table, string tableId = null, IDataTableProvider tables = null) : base(value, table, tableId, tables) { }
public XAD_ExtendedAddress(HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) : base(element, tableIds, tables) { Tables = tables; Populate(element, tableIds); }
public DataTableService() { dataProvider = new SampleDataTableProvider(); }
public ED_EncapsulatedData(HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) : base(element, tableIds, tables) { }
public static IEnumerable <CX_CompositeId> AsCXs(this HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { var cxs = new List <CX_CompositeId>(); if (element.IsRepeatingField) { cxs.AddRange(element.Select(e => new CX_CompositeId(e, tableIds, tables))); } else { cxs.Add(new CX_CompositeId(element, tableIds, tables)); } return(cxs); }
/// <summary> /// Populates a CE CodedElement from a HL7Element accepting Coding Table names /// NOTE: the HL7Tables must be pre-populated with the required table names /// prior to calling the method. /// </summary> /// <param name="element">HL7 Element</param> /// <param name="tableIds">The list of required table names For IS and ID data types /// in the order they appear in the element. If All values use the same Table, it may /// be added once.</param> public CE_CodedElement(HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) : base(element, tableIds, tables) { }
/// <summary> /// Safely Extract a HL7 XCN (Extended Composite ID and Name) from a HL7 Element Assuming suitable conent /// </summary> /// <param name="element"></param> /// <returns>A HL7 XCN Object</returns> public static XCN_ExtendedCompositeIDAndName AsXCN(this HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { return(new XCN_ExtendedCompositeIDAndName(element, tableIds, tables)); }
public XPN_ExtendedPersonName(HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) : base(element, tableIds, tables) { this.Tables = tables; Populate(element, tableIds); }
/// <summary> /// Safely Extract a HL7 CE Coded Element type from a HL7 Element assuming sutiable content /// </summary> /// <param name="element"></param> /// <returns>a HL7 CE object</returns> public static CE_CodedElement AsCE(this HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { return(new CE_CodedElement(element, tableIds, tables)); }
public EI_EntityIdentifier(HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) : base(element, tableIds, tables) { }
public static XAD_ExtendedAddress AsXAD(this HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { return(new XAD_ExtendedAddress(element, tableIds, tables)); }
public XCN_ExtendedCompositeIDAndName(HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) : base(element, tableIds, tables) { }
public static XPN_ExtendedPersonName AsXPN(this HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { return(new XPN_ExtendedPersonName(element, tableIds, tables)); }
/// <summary> /// Safely Extract the Supplied element assuming the element contains suitable contents. /// </summary> /// <param name="element">Element representing or containing the HD Data</param> /// <param name="index">Optionally the sub element </param> /// <returns>A fully populated HL7 HD object</returns> public static HD_HierarchicDesignator AsHD(this HL7Element element, int index = -1, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { var el = element.IndexedElement(index); if (el == null) { return(null); } return(new HD_HierarchicDesignator(el, tableIds, tables)); }
public XON_ExtendedCompositeNameForOrganizations(HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) : base(element, tableIds, tables) { }
public static HD_HierarchicDesignator AsHD(this HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) { return(new HD_HierarchicDesignator(element, tableIds, tables)); }
public XTN_ExtendedTelecommunicationNumber(HL7Element element, IEnumerable <string> tableIds = null, IDataTableProvider tables = null) : base(element, tableIds, tables) { }
public ID_CodedValue(string value, string tableId = null, IDataTableProvider tables = null) : base(value, tableId, tables) { }