Version 0.9.0

9 Data Structures

The resource model shows the relationship between data objects that are used by the Information Mediator building block.
The data elements provide detail for the resource model. All data element schemas can be viewed, commented on, and modified in the schemas section of the IM BB Github repository.

9.1 Standards

The following standards are applicable to data structures in the BB:
  • Requests will be made using HTTPS.
  • Request bodies will be valid JSON.
  • The description of specific services and the data formats they require will be specified in an OpenAPI 3.1 specification.

9.2 Service Access Layer

9.2.1 Resource Model

The Mediator BB key element is Service. The Service is used by a consuming building block or an application and offered by a provider building block or Application. Both Provider and Consumer MUST be Members of Mediator BB. Members of the mediator BB can be an organization (governmental or not, business or not) or a person (citizen as a rule). source in github:
To become a Member of Mediator BB participant must fulfil declared requirements and apply for onboarding. In the process of onboarding a Member is registered with Mediator BB and gets credentials to connect to Mediator BB. Normally it is done the way that a Member provides a certificate of recognized CA and requests signed with this certificate are considered as legitimate requests of the Member. A member entity can access the PubSub configuration and register a room to publish its own event type as a publisher through its own admin.
Members can browse a directory of Services available in Mediator BB. Each service is described in OpenAPI.

9.2.2 Data Elements Member

Member Class enumeration
Member Code string
Signing Key:
Token enumeration (where to put)
Name string
Name of CA enumeration Application

Connection type enum http/https
TLS certificate cert Service

Service Code string
Description URL url OpenAPI spec
Service URL url base address for endpoint (prefix)
Access Rights ACL

9.3 PubSub Layer

9.3.1 Resource Model

Resource Model is extension of Access Layer model: source in github:

9.3.2 Data Elements Event

An event is a set of data described by event type. Each event has an id, and this is most likely a uuid. Event type

An event type is a service described by OpenAPI. Each event type is owned by a certain authority. (E.g. the MoH might own the “new_birth” event type and define its schema.) Publisher

A publisher is a GovStack application that produces events and sends them to Rooms. Room

A room is a GovStack application that handles the distribution of events. Each Room has a set of connected event types. (E.g., the “birth” room might contain three event types: “new_birth”, “birth_complication”, and “infant_death”.) A room is located in the member’s local IM BB implementation and the member is responsible for all types of events in that particular room. Subscriber

A subscriber is a GovStack application that can process events. Subscribers are independent of each other and their business logic is different (as rule). Each subscriber processes events from their own perspective.
Copyright © 2022