Documentation
¶
Overview ¶
Package pseudonymisation is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (Component) IdentifierToToken ¶
func (c Component) IdentifierToToken(ctx context.Context, identifier fhir.Identifier, localOrganizationURA string, recipientURA string, scope string) (*fhir.Identifier, error)
IdentifierToToken converts a BSN identifier to a pseudonymous transport token using the PRS service. The process follows RFC 9497 OPRF protocol: 1. Create PRS identifier from BSN 2. Derive key using HKDF 3. Blind the input using OPRF client 4. Send blinded input to PRS for evaluation 5. PRS returns the final pseudonymized identifier (deblinding happens at the consuming system/NVI)
type FakePseudonymizer ¶
type FakePseudonymizer struct {
}
func (FakePseudonymizer) IdentifierToToken ¶
func (f FakePseudonymizer) IdentifierToToken(ctx context.Context, identifier fhir.Identifier, localOrganizationURA string, recipientURA string, scope string) (*fhir.Identifier, error)
type MockPseudonymizer ¶
type MockPseudonymizer struct {
// contains filtered or unexported fields
}
MockPseudonymizer is a mock of Pseudonymizer interface.
func NewMockPseudonymizer ¶
func NewMockPseudonymizer(ctrl *gomock.Controller) *MockPseudonymizer
NewMockPseudonymizer creates a new mock instance.
func (*MockPseudonymizer) EXPECT ¶
func (m *MockPseudonymizer) EXPECT() *MockPseudonymizerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPseudonymizer) IdentifierToToken ¶
func (m *MockPseudonymizer) IdentifierToToken(ctx context.Context, identifier fhir.Identifier, localOrganizationURA, recipientURA, scope string) (*fhir.Identifier, error)
IdentifierToToken mocks base method.
type MockPseudonymizerMockRecorder ¶
type MockPseudonymizerMockRecorder struct {
// contains filtered or unexported fields
}
MockPseudonymizerMockRecorder is the mock recorder for MockPseudonymizer.
func (*MockPseudonymizerMockRecorder) IdentifierToToken ¶
func (mr *MockPseudonymizerMockRecorder) IdentifierToToken(ctx, identifier, localOrganizationURA, recipientURA, scope any) *gomock.Call
IdentifierToToken indicates an expected call of IdentifierToToken.
type Pseudonymizer ¶
type Pseudonymizer interface {
IdentifierToToken(ctx context.Context, identifier fhir.Identifier, localOrganizationURA string, recipientURA string, scope string) (*fhir.Identifier, error)
}