Barcode Generator Provider

IBarcodeProviderService in assembly SanteDB.Core.Api version 3.0.1980.0

Summary

Represents a barcode generator (QR, CODE39, etc.) which generates visual pointers to provided data

Description

The barcode generator provider is responsible for accepting one or more EntityIdentifier or ActIdentifier instances from an object, and generating a secure barcode which points at the provided resource. Additionally, the barcode provider provides SanteDB with the tooling to generate barcodes from raw data. These barcodes should be returned as an appropriate stream (containing PNG, PDF, or other data) which can be served to the other SanteDB components such as BI reports, or the REST API

This interface is the basis for the Visual Resource Pointer API

Operations

Operation
Response/Return
Input/Parameter
Description

GetBarcodeGenerator

IBarcodeGenerator

String barcodeAlgorithm

Get the for

Implementations

DefaultBarcodeProviderService - (SanteDB.Core.Api)

Default implementation of IBarcodeProviderService

Service Registration

...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
	<serviceProviders>
		...
		<add type="SanteDB.Core.Services.Impl.DefaultBarcodeProviderService, SanteDB.Core.Api, Version=3.0.1980.0, Culture=neutral, PublicKeyToken=null" />
		...
	</serviceProviders>

Example Implementation

/// Example Implementation
using SanteDB.Core.Services;
/// Other usings here
public class MyBarcodeProviderService : SanteDB.Core.Services.IBarcodeProviderService { 
	public String ServiceName => "My own IBarcodeProviderService service";
	/// <summary>
	/// Get the  for
	/// </summary>
	public IBarcodeGenerator GetBarcodeGenerator(String barcodeAlgorithm){
		throw new System.NotImplementedException();
	}
}

References

Last updated