Click or drag to resize

ResourceHandlerBaseTFhirResource, TModel Class

Represents a base FHIR resource handler.
Inheritance Hierarchy

Namespace:  SanteDB.Messaging.FHIR.Handlers
Assembly:  SanteDB.Messaging.FHIR (in SanteDB.Messaging.FHIR.dll) Version: 2.2.1
Syntax
public abstract class ResourceHandlerBase<TFhirResource, TModel> : IFhirResourceHandler, 
	IFhirResourceMapper, IServiceImplementation
where TFhirResource : new(), Resource
where TModel : new(), IdentifiedData

Type Parameters

TFhirResource
The type of the t FHIR resource.
TModel
The type of the t model.

The ResourceHandlerBaseTFhirResource, TModel type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCanonicalType
Gets the canonical type
Public propertyResourceClrType
Gets the CLR type
Public propertyResourceType
Gets the name of the resource.
Public propertyServiceName
Get service name
Top
Methods
  NameDescription
Public methodCanMapObject
True if this handler can process the object
Public methodCreate(Resource, TransactionMode)
Create the specified resource.
Protected methodCreate(TModel, TransactionMode)
Creates the specified model instance.
Protected methodDelete(Guid)
Deletes the specified model identifier.
Public methodDelete(String, TransactionMode)
Deletes a specified resource.
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.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetIncludes
Gets includes
Protected methodGetInteractions
Get interactions supported by this handler
Public methodGetResourceDefinition
Get definition for the specified resource
Protected methodGetReverseIncludes
Gets the revers include paths
Public methodGetStructureDefinition
Get structure definitions
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHistory
Reads the complete history of the specified identifier
Public methodMapToFhir(IdentifiedData)
Map to FHIR
Protected methodMapToFhir(TModel)
Maps a model instance to a FHIR instance.
Public methodMapToModel(Resource)
Map the object to model
Protected methodMapToModel(TFhirResource)
Maps a FHIR resource to a model instance.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodProcessIncludes
Process includes for the specified result set
Public methodQuery(NameValueCollection)
Queries for a specified resource.
Protected methodQuery(ExpressionFuncTModel, Boolean, Guid, Int32, Int32, Int32)
Queries the specified query.
Protected methodRead(Guid, Guid)
Reads the specified identifier.
Public methodRead(String, String)
Retrieves a specific resource.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodUpdate(TModel, TransactionMode)
Updates the specified model.
Public methodUpdate(String, Resource, TransactionMode)
Updates the specified resource.
Top
Fields
  NameDescription
Protected fieldm_localizationService
The localization service.
Protected fieldm_traceSource
The trace source instance.
Top
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