Click or drag to resize

ResourceHandlerBaseTFhirResource, TModel Class

Represents a base FHIR resource handler.
Inheritance Hierarchy
SystemObject
  SanteDB.Messaging.FHIR.HandlersResourceHandlerBaseTFhirResource, TModel
    SanteDB.Messaging.FHIR.HandlersRepositoryResourceHandlerBaseTFhirResource, TModel

Namespace: SanteDB.Messaging.FHIR.Handlers
Assembly: SanteDB.Messaging.FHIR (in SanteDB.Messaging.FHIR.dll) Version: 3.0.2081-alpha+4e2291b954f20d29cba15591683155ca851b26eb
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
 NameDescription
Public methodResourceHandlerBaseTFhirResource, TModel Creates the resource handler
Top
Properties
 NameDescription
Public propertyCanonicalType Gets the canonical type (the type SanteDB uses)
Public propertyResourceClrType Gets the CLR type of the FHIR resource
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 in the repository layer
Protected methodCreate(TModel, TransactionMode) Creates the specified model instance.
Protected methodDelete(Guid) Deletes the specified model
Public methodDelete(String, TransactionMode) Deletes a specified resource.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetIncludes Gets includes specified by the caller
Protected methodGetInteractions Get interactions supported by this handler
Public methodGetResourceDefinition Get definition for the specified resource
Protected methodGetReverseIncludes Gets the reverse include paths
Public methodGetStructureDefinition Get structure definitions
Public methodGetTypeGets 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 methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodProcessIncludes Process includes for the specified result set
Public methodQuery Queries for a specified resource.
Protected methodQueryInternal Execute the specified query
Protected methodRead(Guid, Guid) Read the specified FHIR object.
Public methodRead(String, String) Retrieves a specific resource.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Protected methodUpdate(TModel, TransactionMode) Updates the specified fhir resource
Public methodUpdate(String, Resource, TransactionMode) Updates the specified resource with new data in 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 MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
See Also