Click or drag to resize

EncounterPersistenceService Class

Persistence class which persists encounters
Inheritance Hierarchy
SystemObject
  SanteDB.DisconnectedClient.SQLiteSQLitePersistenceServiceBasePatientEncounter
    SanteDB.DisconnectedClient.SQLite.PersistenceIdentifiedPersistenceServicePatientEncounter, DbPatientEncounter, DbPatientEncounterQueryResult
      SanteDB.DisconnectedClient.SQLite.PersistenceActDerivedPersistenceServicePatientEncounter, DbPatientEncounter, DbPatientEncounterQueryResult
        SanteDB.DisconnectedClient.SQLite.PersistenceEncounterPersistenceService

Namespace:  SanteDB.DisconnectedClient.SQLite.Persistence
Assembly:  SanteDB.DisconnectedClient.SQLite (in SanteDB.DisconnectedClient.SQLite.dll) Version: 2.2.1
Syntax
public class EncounterPersistenceService : ActDerivedPersistenceService<PatientEncounter, DbPatientEncounter, DbPatientEncounterQueryResult>

The EncounterPersistenceService type exposes the following members.

Constructors
  NameDescription
Public methodEncounterPersistenceService
Initializes a new instance of the EncounterPersistenceService class
Top
Properties
Methods
  NameDescription
Protected methodAppendOrderByStatement
Append order by statement
(Inherited from IdentifiedPersistenceServiceTModel, TDomain, TQueryResult.)
Protected methodBeforeInsertDomainObject
Before inserting an instance
(Inherited from IdentifiedPersistenceServiceTModel, TDomain, TQueryResult.)
Protected methodCacheConvert
Try conversion from cache otherwise map
(Inherited from IdentifiedPersistenceServiceTModel, TDomain, TQueryResult.)
Public methodCount
Perform a count
(Inherited from SQLitePersistenceServiceBaseTData.)
Protected methodCreateConnection
Creates the connection.
(Inherited from SQLitePersistenceServiceBaseTData.)
Protected methodCreateReadonlyConnection
Create readonly connection
(Inherited from SQLitePersistenceServiceBaseTData.)
Protected methodCurrentUserUuid
Get the current user UUID.
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodFireInserted
Fire inserting event
(Inherited from SQLitePersistenceServiceBaseTData.)
Protected methodFireInserting
Fire inserting event
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodFromModelInstance
From model instance
(Overrides IdentifiedPersistenceServiceTModel, TDomain, TQueryResultFromModelInstance(TModel, SQLiteDataContext).)
Public methodGet
Get the specified key.
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsert(Object)
Insert the specified object
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodInsert(SQLiteDataContext, TData)
Performthe actual insert.
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodInsert(TData, TransactionMode, IPrincipal)
Insert the specified data.
(Inherited from SQLitePersistenceServiceBaseTData.)
Protected methodInsertInternal
Insert the patient encounter
(Overrides ActDerivedPersistenceServiceTModel, TData, TQueryResultInsertInternal(SQLiteDataContext, TModel).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodObsolete(Object)
Obsoletes the specified data
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodObsolete(SQLiteDataContext, TData)
Performs the actual obsoletion
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodObsolete(TData, TransactionMode, IPrincipal)
Obsolete the specified identified data
(Inherited from SQLitePersistenceServiceBaseTData.)
Protected methodObsoleteInternal
Obsolete the object
(Inherited from ActDerivedPersistenceServiceTModel, TData, TQueryResult.)
Public methodQuery(ExpressionFuncTData, Boolean, IPrincipal)
Query the specified data
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodQuery(SQLiteDataContext, ExpressionFuncTData, Boolean)
Query internal without caring about limiting
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodQuery(Expression, Int32, NullableInt32, Int32)
Query the specified object
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodQuery(ExpressionFuncTData, Boolean, Int32, NullableInt32, Int32, IPrincipal, ModelSortTData)
Query the specified data
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodQuery(ExpressionFuncTData, Boolean, Guid, Int32, NullableInt32, Int32, IPrincipal, ModelSortTData)
Perform a stored query
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodQuery(SQLiteDataContext, ExpressionFuncTData, Boolean, Guid, Int32, Int32, Int32, Boolean, ModelSortTData)
Performs the actual query
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodQueryFast
Query the specified data
(Inherited from SQLitePersistenceServiceBaseTData.)
Protected methodQueryInternal(SQLiteDataContext, ExpressionFuncTModel, Boolean, Int32, Int32, Int32, Guid, Boolean, ModelSortTModel)
Performs the actual query
(Inherited from IdentifiedPersistenceServiceTModel, TDomain, TQueryResult.)
Protected methodQueryInternal(SQLiteDataContext, String, IDictionaryString, Object, Int32, Int32, Int32, Guid, Boolean, ModelSortTModel)
Performs the actual query
(Inherited from IdentifiedPersistenceServiceTModel, TDomain, TQueryResult.)
Public methodToModelInstance
Convert database instance to patient encounter
(Overrides IdentifiedPersistenceServiceTModel, TDomain, TQueryResultToModelInstance(Object, SQLiteDataContext).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate(Object)
Update the specified object
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodUpdate(SQLiteDataContext, TData)
Perform the actual update.
(Inherited from SQLitePersistenceServiceBaseTData.)
Public methodUpdate(TData, TransactionMode, IPrincipal)
Update the specified data
(Inherited from SQLitePersistenceServiceBaseTData.)
Protected methodUpdateAssociatedItemsTAssociation, TModelEx
Update associated version items
(Inherited from IdentifiedPersistenceServiceTModel, TDomain, TQueryResult.)
Protected methodUpdateInternal
Updates the specified data
(Overrides ActDerivedPersistenceServiceTModel, TData, TQueryResultUpdateInternal(SQLiteDataContext, TModel).)
Top
Events
  NameDescription
Public eventInserted
Occurs when inserted.
(Inherited from SQLitePersistenceServiceBaseTData.)
Public eventInserting
Occurs when inserting.
(Inherited from SQLitePersistenceServiceBaseTData.)
Public eventObsoleted
Occurs when obsoleted.
(Inherited from SQLitePersistenceServiceBaseTData.)
Public eventObsoleting
Occurs when obsoleting.
(Inherited from SQLitePersistenceServiceBaseTData.)
Public eventQueried
Occurs when queried.
(Inherited from SQLitePersistenceServiceBaseTData.)
Public eventQuerying
Occurs when querying.
(Inherited from SQLitePersistenceServiceBaseTData.)
Public eventRetrieved
Occurs when querying.
(Inherited from SQLitePersistenceServiceBaseTData.)
Public eventRetrieving
Data has been retrieved
(Inherited from SQLitePersistenceServiceBaseTData.)
Public eventUpdated
Occurs when updated.
(Inherited from SQLitePersistenceServiceBaseTData.)
Public eventUpdating
Occurs when updating.
(Inherited from SQLitePersistenceServiceBaseTData.)
Top
Fields
Extension Methods
  NameDescription
Public Extension MethodConvertTReturn
The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods.)
Public Extension MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Top
See Also