IAliasProvider in assembly SanteDB.Core.Api version 2.1.151.0
Summary
Provider for name and place aliasing
Description
Some implementations of the SanteDB engine allow for searching of data based on aliases. This aliasing allows SanteDB to map an inbound query parameter like 'Bob' to 'Robert' or 'Will' to 'Bill' and 'William'. The service is responsible for providing the known aliases for each name into the SanteDB infrastructure, and these can be accessed using the HDSI extended query filter:
name.component.value=:(alias|Bob)>=1.0
which indicates that the aliases of the stored name should match Bob.
/// Example ImplementationusingSanteDB.Core.Services;/// Other usings herepublicclassMyAliasProvider:SanteDB.Core.Services.IAliasProvider { publicString ServiceName =>"My own IAliasProvider service"; /// <summary> /// Gets the known alias names and score for the alias /// </summary>publicIEnumerable<ComponentAlias> GetAlias(String name){thrownewSystem.NotImplementedException(); } /// <summary> /// Add an alias to the alias provider /// </summary>publicvoidAddAlias(String name,String alias,Double weight){thrownewSystem.NotImplementedException(); } /// <summary> /// Remove the specified alias /// </summary>publicvoidRemoveAlias(String name,String alias){thrownewSystem.NotImplementedException(); } /// <summary> /// Get all aliases /// </summary>publicIDictionary<String,IEnumerable<ComponentAlias>> GetAllAliases(String filter,Int32 offset,Nullable<Int32> count,Int32& totalResults){thrownewSystem.NotImplementedException(); }}