Skip to content

clsNationalDrugPriceCollection

clsNationalDrugPriceCollection is the collection container for national-drug price records.*

Purpose

  • Groups multiple clsNationalDrugPrice items for one drug or retrieval request.*
  • Provides add, remove, save, and load operations for price lists.

Context

  • Namespace: SAIF.Business.Claim.MedicalBill
  • Assembly/package: SAIF.Business.Claim.MedicalBill

Public members

Member Signature Purpose
Item Default Public ReadOnly Property Item(ByVal Index As Integer) As clsNationalDrugPrice Returns item.
Item Default Public ReadOnly Property Item(ByVal inNationalDrugCode As String, ByVal inEffDate As Date) As clsNationalDrugPrice Returns item.
CurrentItem Public Shadows ReadOnly Property CurrentItem() As clsNationalDrugPrice Returns current item.
Save Public Overrides Function Save() As Boolean Executes the Save operation.
Add Public Shadows Function Add(ByVal inclsNationalDrugPrice As clsNationalDrugPrice) As Integer Executes the Add operation.
Contains Public Overloads Function Contains(ByVal inclsNationalDrugPrice As clsNationalDrugPrice) As Boolean Exposes the public member.
Contains Public Overloads Function Contains(ByVal inNationalDrugCode As String, ByVal inEffDate As Date) As Boolean Exposes the public member.
ContainsDeleted Public Overloads Function ContainsDeleted(ByVal inclsNationalDrugPrice As clsNationalDrugPrice) As Boolean Exposes the public member.
ContainsDeleted Public Overloads Function ContainsDeleted(ByVal inNationalDrugCode As String, ByVal inEffDate As Date) As Boolean Exposes the public member.
Remove Public Sub Remove(ByVal inclsNationalDrugPrice As clsNationalDrugPrice) Executes the Remove operation.
Remove Public Sub Remove(ByVal inNationalDrugCode As String, ByVal inEffDate As Date) Executes the Remove operation.
NewCbpNationalDrugPrices Public Shared Function NewCbpNationalDrugPrices(ByVal inDataportal As IDataPortalInfo) As clsNationalDrugPriceCollection Executes the NewCbpNationalDrugPrices operation.
GetCbpNationalDrugPrices Public Shared Function GetCbpNationalDrugPrices(ByVal inDataportal As IDataPortalInfo, ByVal inNatationalDrugCode As String) As clsNationalDrugPriceCollection Retrieves the GetCbpNationalDrugPrices operation.

Behavioral notes

  • This type is documented from its source declaration.
  • The type participates in the clsBusinessCollection inheritance path used by SAIF.Business.Claim.MedicalBill.

Constraints and usage notes

  • Consumers should rely on the public members and BOF lifecycle patterns visible in the source file.

Inherited members (from clsBusinessCollectionBase via clsBusinessCollection(Of T))

This collection type inherits the following public surface from clsBusinessCollectionBase (Legacy\BusinessObjectFramework\clsBusinessCollectionBase.vb), in addition to the members listed above:

Member Signature Purpose
Item Default Public ReadOnly Property Item(ByVal index As Integer) As clsBusinessBase Returns the collection member at the given index (default indexer).
Add Sub Add(ByVal inChild As clsBusinessBase) Adds a child business object to the collection.
Remove Sub Remove(ByVal inChild As clsBusinessBase) Marks a child business object as deleted and removes it from the active list.
Contains Function Contains(ByVal Item As clsBusinessBase) As Boolean Indicates whether the collection contains the given item.
ContainsDeleted Function ContainsDeleted(ByVal Item As clsBusinessBase) As Boolean Indicates whether the given item exists in the collection's deleted-items list.
ItemByGuid ReadOnly Property ItemByGuid(ByVal inGuid As String) As clsBusinessBase Returns the collection member matching the given internal GUID.
MyGuid ReadOnly Property MyGuid() As String Returns the internal GUID that uniquely identifies this in-memory collection instance.
IsDirty ReadOnly Property IsDirty() As Boolean Indicates whether the collection or any child member has unsaved changes.
IsValid Overridable ReadOnly Property IsValid() As Boolean Indicates whether all child members currently have no broken validation rules.
ValidateAllChildren Overridable Property ValidateAllChildren() As Boolean Controls whether every child is validated or only the current item.
Rules ReadOnly Property Rules() As clsRulesManager Returns the rules manager that tracks broken rules for the collection.
ErrorCount / ErrorMessages ReadOnly Property ErrorCount() As Integer / ReadOnly Property ErrorMessages() As String() Returns the count and text of broken error-severity rules across the collection.
WarningCount / WarningMessages ReadOnly Property WarningCount() As Integer / ReadOnly Property WarningMessages() As String() Returns the count and text of broken warning-severity rules across the collection.
InformationalCount / InformationalMessages ReadOnly Property InformationalCount() As Integer / ReadOnly Property InformationalMessages() As String() Returns the count and text of broken informational-severity rules across the collection.
BeginEdit / CancelEdit / ApplyEdit Sub BeginEdit() / Sub CancelEdit() / Sub ApplyEdit() Begins, rolls back, or commits an edit transaction across the collection.
Save Overridable Function Save() As Boolean Persists all added, changed, and deleted members through the BOF data portal.
SaveChild Overridable Function SaveChild() As Boolean Persists the collection as a child of a parent object.
Clone Function Clone() As Object Returns a deep copy of the collection and its members.
IsManaged ReadOnly Property IsManaged() As Boolean Indicates whether the collection is managed by a parent object's lifecycle.
First / FirstItem Function First() As clsBusinessBase / ReadOnly Property FirstItem() As clsBusinessBase Moves to and/or returns the first item in traversal order.
Next / NextItem Function [Next]() As clsBusinessBase / ReadOnly Property NextItem() As clsBusinessBase Moves to and/or returns the next item in traversal order.
Previous / PreviousItem Function Previous() As clsBusinessBase / ReadOnly Property PreviousItem() As clsBusinessBase Moves to and/or returns the previous item in traversal order.
Last / LastItem Function Last() As clsBusinessBase / ReadOnly Property LastItem() As clsBusinessBase Moves to and/or returns the last item in traversal order.
CurrentItem / CurrentIndex ReadOnly Property CurrentItem() As clsBusinessBase / ReadOnly Property CurrentIndex() As Integer Returns the current traversal item and its index.
SetCurrent Sub SetCurrent(ByRef inObject As clsBusinessBase) / Sub SetCurrent(ByVal inIndex As Integer) Sets the current traversal position by item or index.
IndexOf ReadOnly Property IndexOf(ByVal inObject As clsBusinessBase) As Integer Returns the index of the given item within the collection.
IsFirst / IsNext / IsLast / IsPrevious / IsCurrent ReadOnly Property IsFirst(ByVal inItem As clsBusinessBase) As Boolean (and analogous overloads) Indicate an item's position relative to the current traversal state.
XMLElementName / XMLItemName Property XMLElementName() As String / Property XMLItemName() As String Get or set the XML element/item names used when serializing the collection.
GetReportXML Function GetReportXML(ByVal inElementName As String) As String (and file-stream overload) Returns an XML fragment representing the collection and its members.
ToXML / ToXml Function ToXML() As String / Function ToXml(ByVal inTagName As String) As String Serializes the collection to XML using the default or a supplied tag name.

Sources

  • Business\SAIF.Business.Claim.MedicalBill\clsNationalDrugPriceCollection.vb