Repository Service
IRepositoryService<TModel>
in assembly SanteDB.Core.Api version 2.1.151.0
Summary
Represents a repository service
Description
In the SanteDB Software Architecture the repository service layer is the layer responsible for coordinating business rules, privacy, auditing, and other activities from the messaging or other services in the SanteDB iCDR or dCDR.
Repository services should be the primary method of interacting with the SanteDB server infrastructure, as it indicates a user, application or device process is not intending to modify underlying persistence data directly (as would be the case for a system process), rather it wishes SanteDB to execute all validation and rules as normal.
Operations
Operation | Response/Return | Input/Parameter | Description |
---|---|---|---|
Get | TModel | Guid key | Gets the specified model data |
Get | TModel | Guid key Guid versionKey | Gets the specified model data |
Find | IEnumerable<TModel> | Expression<Func<TModel,Boolean>> query | Finds the specified data where the current version matches the query provided |
Find | IEnumerable<TModel> | Expression<Func<TModel,Boolean>> query Int32 offset Nullable<Int32> count Int32& totalResults ModelSort`1[] orderBy | Finds the specified data where the current version matches the query provided |
Insert | TModel | TModel data | Inserts the specified model information |
Save | TModel | TModel data | Inserts or updates the specified data |
Obsolete | TModel | Guid key | Obsoletes the specified object |
Implementations
AppletSubscriptionRepository - (SanteDB.Core.Applets)
An implementation of the ISubscriptionRepository that loads definitions from applets
Service Registration
GenericLocalActRepository<TAct> - (SanteDB.Server.Core)
Represents an IRepositoryService which stores Acts and their derivative classes
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
GenericLocalClinicalDataRepository<TModel> - (SanteDB.Server.Core)
Represents generic local clinical data repository
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
GenericLocalConceptRepository<TModel> - (SanteDB.Server.Core)
Generic local concept repository with sufficient permissions
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
GenericLocalRepositoryEx<TModel> - (SanteDB.Server.Core)
Generic nullifiable local repository
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
GenericLocalSecurityRepository<TSecurityEntity> - (SanteDB.Server.Core)
Generic local security repository
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
LocalEntityRelationshipRepository - (SanteDB.Server.Core)
Represents a local entity relationship repository
Service Registration
LocalExtensionTypeRepository - (SanteDB.Server.Core)
Local extension types
Service Registration
LocalManufacturedMaterialRepository - (SanteDB.Server.Core)
Local material persistence service
Service Registration
LocalPatientRepository - (SanteDB.Server.Core)
Local material persistence service
Service Registration
LocalProviderRepository - (SanteDB.Server.Core)
Provides operations for managing organizations.
Service Registration
Local Mail Message - (SanteDB.Server.Core)
Represents a local alert service.
Service Registration
LocalAssigningAuthorityRepository - (SanteDB.Server.Core)
Represents a repository service for managing assigning authorities.
Service Registration
Default Audit Repository - (SanteDB.Server.Core)
Represents an audit repository which stores and queries audit data.
Service Registration
LocalBatchRepository - (SanteDB.Server.Core)
Local batch repository service
Service Registration
Local Repository Service - (SanteDB.Server.Core)
Represents a base class for entity repository services
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
GenericLocalMetadataRepository<TMetadata> - (SanteDB.Server.Core)
Provides generic basis for metadata editing
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
LocalMaterialRepository - (SanteDB.Server.Core)
Local material persistence service
Service Registration
LocalSecurityApplicationRepository - (SanteDB.Server.Core)
Local security application repository
Service Registration
LocalSecurityDeviceRepository - (SanteDB.Server.Core)
Local security device repository
Service Registration
LocalSecurityPolicyRepository - (SanteDB.Server.Core)
Alter policies
Service Registration
LocalSecurityRoleRepositoryService - (SanteDB.Server.Core)
Represents a local security role service
Service Registration
LocalSecurityUserRepositoryService - (SanteDB.Server.Core)
Security user repository
Service Registration
LocalTemplateDefinitionRepositoryService - (SanteDB.Server.Core)
Represents a local metadata repository service
Service Registration
LocalOrganizationRepository - (SanteDB.Server.Core)
Provides operations for managing organizations.
Service Registration
LocalPlaceRepository - (SanteDB.Server.Core)
Place repository that uses local persistence
Service Registration
LocalUserEntityRepository - (SanteDB.Server.Core)
Localuser entity repository
Service Registration
LocalConceptRepository - (SanteDB.Server.Core)
Represents a service which is responsible for the maintenance of concepts using local persistence.
Service Registration
Example Implementation
References
Last updated